<html>
<head>
</head>

<body bgcolor="#FFFFFF">
<p class="Decl"><b>procedure</b> ColorToGrayscale(Dst, Src: <a href="../../GR32/Classes/TCustomBitmap32/_Body.htm">TCustomBitmap32</a>;
  PreserveAlpha: Boolean = False);</p>
<h2>Description</h2>
<p class="Body">Calculates color intensity from <b>Src</b> and writes it as a 
  grayscale image into <b>Dst</b>. The alpha channel in <b>Dst</b> will be set 
  to $FF by default. However, you can override this behaviour by setting <strong>PreserveAlpha</strong> to <em>True</em>.</p>
<p class="Body">This function supports in-place operation, that is <b>Dst</b> 
  may be the same as <b>Src</b>.</p>
<p id="Hidden"></p>
<p id="Hidden">[See also] <a href="AlphaToGrayscale.htm">AlphaToGrayscale</a></p>
</body>
</html>
